<%--
  Created by IntelliJ IDEA.
  User: Elle
  Date: 2023/5/15
  Time: 9:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
<div>
    <a href="${pageContext.request.contextPath}/user/toadd">新增用户</a>
</div>
<table>
    <tr>
        <td>编号</td>
        <td>工号</td>
        <td>真实姓名</td>
        <td>密码</td>
        <td>性别</td>
        <td>出生日期</td>
        <td>操作</td>
    </tr>
    <c:forEach var="tmp" items="${userList}">
        <tr>
            <td>${tmp.id}</td>
            <td>${tmp.account}</td>
            <td>${tmp.realName}</td>
            <td>${tmp.password}</td>
            <td>${tmp.sex}</td>
            <td>${tmp.birthday}</td>
            <td>
                <a href="${pageContext.request.contextPath}/user/del?id=${tmp.id}">删除</a>
                <a href="${pageContext.request.contextPath}/user/delete/${tmp.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
